/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue.basic.reader.util;

import android.graphics.Bitmap;
import android.graphics.Matrix;

public class PhotoUtil {
	public static Bitmap big(Bitmap paramBitmap, float paramFloat1,
			float paramFloat2) {
		Matrix localMatrix = new Matrix();
		localMatrix.postScale(paramFloat1, paramFloat2);
		try {
			Bitmap localBitmap = Bitmap.createBitmap(paramBitmap, 0, 0,
					paramBitmap.getWidth(), paramBitmap.getHeight(),
					localMatrix, true);
			return localBitmap;
		} catch (Exception localException) {
		}
		return null;
	}

	public static Bitmap small(Bitmap paramBitmap, float paramFloat) {
		Matrix localMatrix = new Matrix();
		localMatrix.postScale(0.8F, 0.8F);
		return Bitmap.createBitmap(paramBitmap, 0, 0, paramBitmap.getWidth(),
				paramBitmap.getHeight(), localMatrix, true);
	}
}